package cz.salixsoft.bugreporter;

/**
 * Default bug implementation.
 *
 * @author Vrbenský Milan
 * @version 1.0 @created 01-II-2012 15:57:44
 */
public class DefaultBugImpl implements Bug {

    /**
     * Summary of bug.
     */
    protected String summary = "";

    /**
     * Description of bug.
     */
    protected String description = "";

    /**
     * Priority of bug.
     */
    protected Priority priority = Priority.NOT_DEFINED;

    /**
     * Severity of bug.
     */
    protected Severity severity = Severity.NOT_DEFINED;

    /**
     * Returns description of bug.
     */
    public String getDescription() {
        return description;
    }

    /**
     * Returns priority of bug.
     */
    public Priority getPriority() {
        return priority;
    }

    /**
     * Returns severity of bug.
     */
    public Severity getSeverity() {
        return severity;
    }

    /**
     * Returns summary of bug.
     */
    public String getSummary() {
        return summary;
    }

    /**
     * Creates new default bug.
     *
     * @param summary     Summary of bug
     * @param description Description of bug
     */
    public DefaultBugImpl(String summary, String description) {
        this.summary = summary;
        this.description = description;
    }

    /**
     * Creates new default bug.
     *
     * @param summary     Summary of bug
     * @param description Description of bug
     * @param priority    Priority of bug
     * @param severity    Severity of bug
     */
    public DefaultBugImpl(String summary, String description, Priority priority, Severity severity) {
        this(summary, description);
        this.priority = priority;
        this.severity = severity;
    }
}